package com.yzl.security.properitiees;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author: 姚志立
 * @Date: 2020/5/5 9:41
 * @Version: 1.0
 */

@Component
@ConfigurationProperties(prefix = "yzl.security")
public class SecurityProperties {
    //会将yzl.security.authentication 下面的值绑定到AuthenticationProperties
    private AuthenticationProperties authentication;

    public AuthenticationProperties getAuthentication() {
        return authentication;
    }

    public void setAuthentication(AuthenticationProperties authentication) {
        this.authentication = authentication;
    }
}
